initial code for using specifcation instead of query for selects