initial junction code