fixed up period ranges