Chaing the doc from 'slug' to 'string'
Setting the reference using the proper variable