changed correct position function