changing duration object and adding vaildations