updated doc to fit function declaration