changed typeof to is