removed alert from error handling