using list instead of dict as we do not need the key lookup
again trying to fix speed decrease by splitting lists to smaller chunks