col and row working now, still need improvements though