added submitted index and set to submitted