last version

add new function check_for_exception