change server loop