implement the green and yellow progress