added end of function comment