changed nextpos calc again