updated with debug lines for disparity