compute should set the initial value of the observable