changed average to give average per sec