update input homework