fixed euler issues that came with last commit