fixing pagnation