working to get files inputted correctly