fix delegate method