update to rotate and delete rows