fixing compile time errors