converted client variable to instance variable