move registration to end of file