added business logic pass In and OUT logging transactions