copy a index