base clean up