refactoring: expand element definition to an array (use color as category)