replace actor with agent