try instead of tryCatch