minor changes to bias calculation (Unsure if correct)