handling more errors