add taking a snapshot