refactor topic subscribers' notification in order to optimize it