add odd and even to template