replace event color with variable