extract uses fileinput; flipped u and v for a special case