use limit and offset for passing pagination parameters