simplify input