nearly finished new profiling function; just need a way of comparing test vs control