remove unsed variable
format
simplify input compoments