clean up registration