debug for location offset