subscribe method moved to the model