try-catch to A.m added