cleaned up debug