limit and offset for pagination added