create selWeek function