adding subscribe method