added a calculation for new positions