change pair to mutable pair