replacing unordered list with ordered one