deleted new hash in calculate_order method