fixed issue where it was not getting only prior iterations