implemented same listOfN