removes mutable elems val