remove garbage function