following Daniel Kehoe's book