handle list as argument