wrap with try