subscription part of publisher/subscriber pattern implemented