altered e-r diagram