made suggested changes and set slug to nil rather than an empty string