fixing compile time error