fixing errors. compiles, but still useless