add missing 'typeof' statement