speedup in 21, solved 24; euler now handles edge cases better