remove boilerplace, fix compile error