range: add support for nor starting from 0