ec2 tags were not comparing correctly because they are an unordered list