changed errors to warnings