add class syntax to details