-- changed proc to be ranged