bindData function.