add fix compile error method