changed to correct exception type