problem in splitNode method