properly use limit for pagination