adding ranges to inputs