adding action to return pairs within a period