added sorting variables into dependent and independent piles