removing warning messages