finished the select statement + write out the result