*added Jonathan's fix for improper scope of the new color variable