added confirm code stuff