valuenow should be init to 0