add headnames to classes