updated to latest version of snap; removed p_unique