insert infStats function in to other areas of library