compatibility whit listener