method in register file

a bit of cleaning by replacing a method within the register file.