reduced warnings to minimum