added support for lists