fixed all errors, compiles now