name in error-throwing corrected