efficiently way to store node