cross field code still not compiling. fixed warnings