class required to make callback in recursive reques