method to Euler