remove unused insert_action function