small fix regarding ranges