speed optimizations for node/basis functions