changed LRANGE to handle negative length