added class vars to traits