changes to order model