correcting function documentation