eliminate unnecessary flag