clean up register