remove duplicate add_action() function