deprecated observe should not be used