these two methods work on all node types