remove useless code for operator