start parsing input