more conditions to prune warnings