pass days array to the index