making saveLocation so that we can save the function