copy from snap