added getSingleNode method