adjusted the select clause