rename warning to warn