packed corrected v0.5