alternating characters problem resolved