implement color attribute