BUG: changing constructor of scalarField