main script w fn that handles words of even length