working on query with Typhoeus