can we check the documentation of this function. It seems to be outdated