deciding flags