set period when last period