testing and writing doc