making sure we always set the detail property