updated to handle new slug id