using varialbe arg. instead of toList