changing working index to index