prevent exception