added avatar if statement