fixed comment for snapshot function