changed function of server