errors fixed in derivParam