added gc function
added gc