adding "limit" as another flag