resolved the compiler errors