fixed printf warning messages