update mechanism for last period