clean up reg