removed parameters by reference for client and order