add in select for query