added pulse algorithm