add location checks the input