adding trimSnapshot method