somes input cleanup