performance testing function added