correction of garbage collect