remove useless code
fix compile error