fixed sample run output (code changed)