fixed a bug with c and col getting mixed up.