added sum flags