initial commit of bias calculation