add function commentary