find max should respect blocks
flint wrapper functions changed
test for next row