fix bug; define initial value