tighter mem management
tighter mem management in array-set compiler