error file added and index updated