added slugify method