improve score function
improve estimation function