building function on the hill