implemented function of the value node