cleaning up in case