fixing prev.