deleting unuseful resources