use scalar in upper level, ref #71