fixed scalar function doc