remove mask debug code