input merge