changed currentResult to oldResult