added equals in case statement