added inputParse for inputing