confirm extends input, wrote tests