remove useless boolean flag