finished partial write-up. very incomplete...