changed error to warn