added support to key range