fixing final compile time errors