clean up code used for debug