mutable copy error resolved