error in amount of colors if statment