updated for loop in ChangeAppearance