trying to figure out the cause of the assertion failed in algorithm2D -backup-