third diagram added