modified commit for register_file, simpler