removed instanceof Elem