removed comments
added constants
added order_date for order, apply order_date rule