bound prepend_to_csv so it does not exceed 1k elements