use the functional form of time(), and mark XXX a couple of places