once function documentation