revised set slug method