added deterministic way to come up with Bs