debug for location