created pulse and pulseringaverage