bug fix for valueOut