change definition of clientAcc to using view patterns