clean up gd