removed unused functions in Meta; added inheritance

also, removed unnecessary extra layer of function scope