make rows work right