building function on a cold december morning