add metal range + fix selection in range (use < not <=)