using arrays rather than cut to keep the right number of backups