added ct study logic