minor modification of StateLineFill.vi