adding euler3 code from work machine