use typeof to get defined