removed all the compilation warnings