looking for bug somewhere in delta method