Unneded variable prepfile. Use file