phase 1 add 2 functions