changed representation of type observations: merged functions and objects