cleaned up register