add Merge and NewRow func

add Merge and NewRow func