swapping in the correct file