removed references to my files and take in the location as an argument