check for even and odd