made listOf match implementation