version with support for multiple lists