packageLength and packageType not const