adding a snapshot