return null instead throw exception