fixed compile time errors