trying my best to get rid of these spurious nodes, but it refuses to work. still in progress