fix pulse define