got rid of some intermediate values, saved a few ns