packet define- Before generator