added the ability to calculate Odd and Even paths