perform cleaning up