added parsing input elements