finished writing the get order functions