code for sending bc by case state added but not yet tested