changed queries to be comma seperated