compile error fixes