update object prototype