replace diagram