added pulse on pin 9