fixed errors, now compiling well