added add to study function