modify provided code: compileOK