adding leaf and key