encapsulated prem transact code