modify in place