add new helper function

add new helper function to select an element by value