adding instanceof