prepare for pagination for codes