running stat func with id query param