returns the id after subscribe to collection.