added simpler color handling