update hw4 fix compilation warnings