added parameter to set initial value condition