fixed error w/ inputs