declares and defines functions that will make the function calls execute properly