handling warnings