added logging input