prepared analysis functions