wrapping in try