Subst for functions and objects