fixed all compilation warnings