added support for result limiting
changed example