*add else statement to prevent duplicate exception logging