update index and demo3