a few more interesting bits of code