paginaton partial and logic finalized