rest collection saving