changed no of months into periods