working TVM merge