how to do preparation for gate....