parameterized to accept a studyId