use length for list and not len