update code for order query result