add function

add comments