querying done, ready for last step