added get position method