separating tasks inside try