adding pulse generator