changed period model logic