made changes to input box replacement