removed unecessary nodes