now when we change the period to analyse we print only corresponding items