remove unneeded code from main node