changed an error to warn