added function doc comment