began on general transposition code