updates main and ignore arrays