implementation in queryProcess