added functions to check total bias