add function of one query/one session