finish the hull , change tri input to stdin