working pe, added collision frequency functions