added base node code but still needs to be edited