adjust diagram comefrom