reduce flag size