fixed pulse width value and reorganized