update the write up code