fixing multiple file problem