method to get envelope