New version: using of garbage collector was added