fixing getskipcontent() and pruneskipgrams()