modify pointer to reference