adding select functionality 2