remove unnecessary exception throw