finished the functions checkpoint