hs b&b opt, works but code is in a mess