adding enroll functionality