got gates working right