added template for origination
multiple changes
revised origination code