removed y calculations