combined brians code