oops error in file2reg