set metatable of parent