now iterates over selection