added notice if location invalid