fix function documentation