created work around for dynamically adding nodes