code review

fix warnings