improve edit in place