getting rid of exceptions