add the proper functions
add link to doc