add color as attribute