frontend calculations are working