added coff-value function