how to use snapshot