fixing prev issue