add functions for print optional value names and id if incorrect assignment