noah's awesome code to make it only load data once