val_val added, debug added