minor fixes for warnings