initial envelope detector