updating client code