fixing compilation error