commit with add index