almost done for single node