adding euler limit, other fixes