writing mod method docs