merge code for the modification of facts