Renamed selection to type