use helper functions to perform selections.