error catching fixed.