first version of period selection added