reworded client code; no functionality change