put server code before client code