the Stanford Cool Implementation