bug fix... bias is now correct (may be?)

code is more logical too