changes in the select function for cassandra