adds functionality for range