catch the right error