added period and duration setter