loop through the function expectations