updated peaks code to do days of week