improved the thesis according to Sami's feedback