fixed chunk size gc work, needs refactoring