fixed the problems with compiling