part 6 functions