remove useless boolean