position detection method