addded catch clause