trying to figure out node insertion