simplify hash in order controller