updated with ME and PE calculations