selecting flags