change the type to level for warnings