solve the compile errors.