changed the word locations to location in the coding