Adjust the position code