updated order model