remove unnecessary flag