remove the now unused compare_position function