tweak the select statement