fixing typo
chaning subscriber.setstate and subscriber.getstate to state