extra check for undefined