removed gc function