update and optimizer
Fix index view