added a simple yet effective optimization to the znode