added trigger control for spike