optimizing packed nodes