stop gate input is working