got rid of NULL bug in rowColFlipper function