putting callback into function