reverse ordering of base case