layer graph almost done