adding running time calculation