*almost working pagination