remove debug/dead code