added to device calls for scalars