Can we use mutable pair instead?