first steps for pagination