unnecessary constants removed and metatype typo fixed