making the subscribe function have more usefullness