fixing variable access error
fixing node initialization