finished coding for studies