moved number of weeks to a var