fixed part of the issue with gc