updates order model