remove addHandler function