added reverse of a list