check list sizes and prevent exceptions
updated to 2.4.0