for jordan I updated the getorders functions