testing logic with smaller list