changed error to warning