returning used nodes