graph back and reverse list