changing subscriberSetState to setState , subscriberGetState to getState