project 2 functions