adding delegate