add sub and sup nodes