added euler stuff