more efficient loading method