add rotation argument in getLocation method