changed writeup. need to change code