fleshing out enrollment code