first attempt at tf merging