solve the compile error