remove un-used function on ami connected event