made color generation sequential