renamed function for scalar function function