trying with instanceof