remove debug code, working now