include algoirthm in garbage collector