asObservable handles functions