changed wrong access types of pagination