new starting value set to one and added logging