add function release query