need to work out the cbind function