observing as parameter