updated error message to be more verbose