finish server-client model