added current property to pagination