xkcd function added