cleaning up the contents