added catch block exception