added buildLevels to populate the attribute with enum options