initialized value to 1 in node constructor