merging and interpolatin