move methods to Position class