fixed some of the compiler errors