final PhD thesis