remove unnecessary delegate assignment to class.