tweaks to bbvb algorithm