a bit better copy on index