fixes alternating issue.