begins to build a function to evaluate performance