updated case for undefined values