modify a reference copy