take out needed registers
rm file