updating period type