Replacing diagram