scalar function

Scalars and losing attributes