some tweaks to my functions file.