cleaned up EDM diagram layout