improved comment of function