fixing compilation warnings