compilation error fixes