added envelope thing