works for initial odd length arrays