minor refactoring to pulse detection and added two big samples for pulse