switched to shorter but repeated computations