fix most warnings with -pendantic