improved the input treatments