major code for chem ba or bs fix