fixed error in replacement functions due to (object, value, ...) - i.e.replaced with
(object, value)