function should be called 'tick', not 'foo'.