cleaned up writeup