removed map-over-nth function