solve compilation error