both operations belong in same try block