changing into node object extension method