add object's function and properties