changed merge to cbind