error correction. compiles now