remove dependencies and takes snapshot