study function added