SaveByCollection function import