add prevent exception