simplify the input