remove useless computation