creating appropriate transactions