solve columns one after another