excpetion catching in place