can you add a docstring on the function to help make clear and obvious what this function does and what the parameters are meant to be?