change sequence of assignment in app#route