add docstring
Move function for great pedantry