rearranges packets for easier understanding
javadoc
trimming