take a snapshot