added performance measurement