inheritance in BEq class is improved