trying to catch error