added getScalar()