finel version of envelop sample