fixed Wformat warnings