rewrote docs