done pagination and arrange constants