improved ranging + retrieving previous style