removed old unused functions and fixed a file path