changed input defines in Gate Code