completed most functions starting with X, halfway through functions starting with T