add function wait_call