changed order of column used to attach