added odd-even problem