used instanceof for "is"