compilation warnings fixed