solved the problem with the compilation, now facing runtime exceptions