fixing issues with gc